import request from "../../utils/request";

// 整体报表
export const entiretyList = (data) => {
    return request({
        url: '/entirety/list',
        method: 'post',
        data
    })
}
// 整体报表导出
export const entiretyExport = (data)=> {
    return request({
        url: `/entirety/export`,
        method: 'post',
        data: data,
        responseType: 'blob'//处理乱码问题，转化为blob类型
    })
}

// 座席报表
export const inspectionStatement = (data) => {
    return request({
        url: '/inspectionStatement/list',
        method: 'post',
        data: data
    })
}

// 座席报表导出
export const agentStatementExport = (data)=> {
    return request({
        url: `/agentStatement/export`,
        method: 'post',
        data: data,
        responseType: 'blob'//处理乱码问题，转化为blob类型
    })
}

// 质检项报表
export const agentStatementList = (data) => {
    return request({
        url: '/agentStatement/list',
        method: 'post',
        data: data
    })
}
// 质检项报表导出
export const inspectionStatementExport = (data) => {
    return request({
        url: `/inspectionStatement/export`,
        method: 'post',
        data: data,
        responseType: 'blob'//处理乱码问题，转化为blob类型
    })
}
// 质检项报表导出
export const keywordStatementExport = (data) => {
    return request({
        url: `/keywordStatement/export`,
        method: 'post',
        data: data,
        responseType: 'blob'//处理乱码问题，转化为blob类型
    })
}


// 关键词报表
export const keywordStatementList = (data) => {
    return request({
        url: 'keywordStatement/list',
        method: 'post',
        data: data
    })
}
